<?php
//根据条件做相应查询
$rsData = $db->mysqlDB->field($route->bodyParams)->params($route->restfulParams)->select("sys_atomic_configuration");

//重新构建返回结果
$rsData['data'][0]['ac_is_debug']                       = setIntConversionStandardBool($rsData['data'][0]['ac_is_debug']);
$rsData['data'][0]['ac_is_independent_deployment']      = setIntConversionStandardBool($rsData['data'][0]['ac_is_independent_deployment']);
$rsData['data'][0]['ac_is_physically_delete']           = setIntConversionStandardBool($rsData['data'][0]['ac_is_physically_delete']);
$rsData['data'][0]['ac_is_access_control_allow_origin'] = setIntConversionStandardBool($rsData['data'][0]['ac_is_access_control_allow_origin']);
$rsData['data'][0]['ac_is_curd']                        = setIntConversionStandardBool($rsData['data'][0]['ac_is_curd']);
$rsData['data'][0]['ac_is_white_auth']                  = setIntConversionStandardBool($rsData['data'][0]['ac_is_white_auth']);
$rsData['data'][0]['ac_is_cache']                       = setIntConversionStandardBool($rsData['data'][0]['ac_is_cache']);
$rsData['data'][0]['ac_noDatabaseUse']                  = setIntConversionStandardBool($rsData['data'][0]['ac_noDatabaseUse']);
$rsData['data'][0]['ac_is_aggregation_server_validation'] = setIntConversionStandardBool($rsData['data'][0]['ac_is_aggregation_server_validation']);
$rsData['data'][0]['ac_is_web_manager_add_api']         = setIntConversionStandardBool($rsData['data'][0]['ac_is_web_manager_add_api']);
$rsData['data'][0]['ac_is_data_filter']         = setIntConversionStandardBool($rsData['data'][0]['ac_is_data_filter']);
$rsData['data'][0]['ac_router_layer']           = $rsData['data'][0]['ac_router_layer'];
$rsData['data'][0]['ac_built_in_url']           = $rsData['data'][0]['ac_built_in_url'];

//返回成功结果
$response->responseData( true, $rsData );